This page last changed on Dec 20, 2006 by rosspatterson.

Using CruiseControl.NET with AccuRev

CruiseControl.NET has the following integration with AccuRev, Inc.'s AccuRev source control system:

Modification Checking via polling
Automatic Source Updates
Automatic labelling on success

Setting up an AccuRev workspace for use with CruiseControl.NET

CruiseControl.NET cannot automatically create a workspace from AccuRev - it can only perform updates. Before you start you must therefore create the workspace you want to integrate, specifying its location as a directory on your integration server. You can do this using the normal AccuRev client (command line or GUI).

Make a note of the full path of your working directory (the uppermost directory that got checked out) since you're going to need that data for configuring your CruiseControl.NET server.

You'll also need the AccuRev command line client installed on the integration server.

Configuring CruiseControl.NET

You need to make sure you use the accurev Source Control block within your project. Read up on this configuration block here: AccuRev Source Control Block.

Automatic Source Updates

To have CCNet automatically retrieve the latest version of the source from AccuRev prior to running a build, you should set the autoGetSource attribute to true.

Automatic Labelling (snapshoting)

To have CCNet automatically create an AccuRev snapshot after a successful build, you should set the labelOnSuccess attribute to true. The label itself is specified by your choice of label generator, one of which (the Last Change Labeller) can build a label based on the AccuRev transaction number.

The contents of the snapshot will be the workspace's basis stream as of the most recent transaction included in the build.

Document generated by Confluence on Mar 14, 2009 02:55